﻿using System.Data;
using System.Windows.Forms;

namespace ProgramMain.Database {
    
    public partial class SimpleOpticNetDB {
        partial class CableTunnelsDataTable
        {
        }
    
        partial class FibreDataTable
        {
        }
    
       
        private void InitializeComponent()
        {
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // SimpleOpticNetDB
            // 
          //  this.DataSetName = "SimpleOpticNetDB";
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }

        public static BindingSource CreateDataSource(DataTable table)
        {
            BindingSource bindingSource = new BindingSource();
            bindingSource.DataSource = table.DataSet;
            bindingSource.DataMember = table.TableName;
            
            return bindingSource;            
        }
    }
}
